jquery scroll to top

61

scroll to element jquery -

$('html, body').animate({
  scrollTop: $("#grepperRocks").offset().top
});

jquery scroll to top of div -

$('#DIV_ID').scrollTop(0);

scrool to top jquerry -

$("a[href='#top']").click(function() {
  $("html, body").animate({ scrollTop: 0 }, "slow");
  return false;
});

Comments

Submit
0 Comments